package com.backsidecode.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 课程信息表

 * @TableName courses
 */
@TableName(value ="courses")
@Data
public class Courses implements Serializable {
    /**
     * 课程主键id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 课程名
     */
    @TableField(value = "class_name")
    private String className;

    /**
     * 授课老师姓名
     */
    @TableField(value = "teacher")
    private String teacher;

    /**
     * 教室
     */
    @TableField(value = "room")
    private String room;

    /**
     * 容量
     */
    @TableField(value = "capacity")
    private Integer capacity;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}